﻿using DirectSell.Model.User;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Webdiyer.WebControls.Mvc;

namespace Direct.IDAL.User.Jurisdiction
{
    /// <summary>
    /// 会员激活仓储接口
    /// </summary>
    public interface IActivationRepository:IAbsRepository
    {
        /// <summary>
        /// 查询未激活会员
        /// </summary>
        /// <param name="UserCode"></param>
        /// <returns></returns>
        Task<PagedList<UserInforMationDetails>> NotActive(string UserCode, int PageIndex, int PageSize);
        /// <summary>
        /// 激活会员
        /// </summary>
        /// <param name="UserCode"></param>
        /// <param name="hsTable"></param>
        void Active(int UserId, ref Hashtable hsTable);
        /// <summary>
        /// 会员删除
        /// </summary>
        /// <param name="UserCode"></param>
        /// <param name="hsTable"></param>
        bool Delete(int UserId);
        /// <summary>
        /// 重复激活拦截
        /// </summary>
        /// <param name="userid"></param>
        /// <returns></returns>
        Task<bool> CheckStatus(int userid);
        /// <summary>
        /// 查会员余额
        /// </summary>
        /// <param name="userid"></param>
        /// <returns></returns>
        decimal GetBalance(int userid);
        /// <summary>
        /// 查激活所需金额
        /// </summary>
        /// <param name="levelId"></param>
        /// <returns></returns>
        decimal GetNeedMoney(int userid);

    }
}
